<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: BootImageGenerator.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_boot_image_generator_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BootImageGenerator.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * File:    BootImageGenerator.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * See included license file for license details.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#if !defined(_BootImageGenerator_h_)</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#define _BootImageGenerator_h_</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;OutputSection.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;BootImage.h&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;OptionContext.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceelftosb.html">elftosb</a></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;{</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html">   33</a></span>&#160;<span class="keyword">class </span><a class="code" href="classelftosb_1_1_boot_image_generator.html">BootImageGenerator</a></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;{</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html#af94034bc92bd88bcb3d82d9bf8a0cb36">   37</a></span>&#160;    <a class="code" href="classelftosb_1_1_boot_image_generator.html#af94034bc92bd88bcb3d82d9bf8a0cb36">BootImageGenerator</a>() {}</div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html#adc570a878bc12ecd62bae599867b802e">   39</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_boot_image_generator.html#adc570a878bc12ecd62bae599867b802e">~BootImageGenerator</a>() {}</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html#a1f3b5f2e9aaadc1824b3714339e23043">   41</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_boot_image_generator.html#a1f3b5f2e9aaadc1824b3714339e23043">addOutputSection</a>(<a class="code" href="classelftosb_1_1_output_section.html">OutputSection</a> *section) { <a class="code" href="classelftosb_1_1_boot_image_generator.html#a137bfb230bafcdf9e1656d885bfb5769">m_sections</a>.push_back(section); }</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html#a20e2a5c01f10947793f17ecb961db440">   43</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_boot_image_generator.html#a20e2a5c01f10947793f17ecb961db440">setOptionContext</a>(<a class="code" href="classelftosb_1_1_option_context.html">OptionContext</a> *context) { <a class="code" href="classelftosb_1_1_boot_image_generator.html#a693b475d9c9ad64950df0fad3f10ee7c">m_options</a> = context; }</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classelftosb_1_1_boot_image.html">BootImage</a> *<a class="code" href="classelftosb_1_1_boot_image_generator.html#a906f4abc3d02d86d22ba4ddafb5127bd">generate</a>() = 0;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00049"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html#acff4dacf326ce4a14121da5b7b2b4d64">   49</a></span>&#160;    <span class="keyword">typedef</span> std::vector&lt;OutputSection *&gt; <a class="code" href="classelftosb_1_1_boot_image_generator.html#acff4dacf326ce4a14121da5b7b2b4d64">section_vector_t</a>;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html#a137bfb230bafcdf9e1656d885bfb5769">   51</a></span>&#160;    section_vector_t <a class="code" href="classelftosb_1_1_boot_image_generator.html#a137bfb230bafcdf9e1656d885bfb5769">m_sections</a>; </div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="classelftosb_1_1_boot_image_generator.html#a693b475d9c9ad64950df0fad3f10ee7c">   52</a></span>&#160;    <a class="code" href="classelftosb_1_1_option_context.html">OptionContext</a> *<a class="code" href="classelftosb_1_1_boot_image_generator.html#a693b475d9c9ad64950df0fad3f10ee7c">m_options</a>;    </div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_boot_image_generator.html#a0f7a5debac63b14bc919c2c5f00a472b">processVersionOptions</a>(<a class="code" href="classelftosb_1_1_boot_image.html">BootImage</a> *image);</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classelftosb_1_1_boot_image_generator.html#adfa8d846e1b5778c7f979a1534e27eab">processDriveTagOption</a>(<a class="code" href="classelftosb_1_1_boot_image.html">BootImage</a> *image);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;};</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;}; <span class="comment">// namespace elftosb</span></div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="preprocessor">#endif // _BootImageGenerator_h_</span></div><div class="ttc" id="classelftosb_1_1_boot_image_generator_html_adc570a878bc12ecd62bae599867b802e"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#adc570a878bc12ecd62bae599867b802e">elftosb::BootImageGenerator::~BootImageGenerator</a></div><div class="ttdeci">virtual ~BootImageGenerator()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:39</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_adfa8d846e1b5778c7f979a1534e27eab"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#adfa8d846e1b5778c7f979a1534e27eab">elftosb::BootImageGenerator::processDriveTagOption</a></div><div class="ttdeci">void processDriveTagOption(BootImage *image)</div><div class="ttdoc">Handle the common option which sets the system drive tag. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.cpp:65</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_a1f3b5f2e9aaadc1824b3714339e23043"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#a1f3b5f2e9aaadc1824b3714339e23043">elftosb::BootImageGenerator::addOutputSection</a></div><div class="ttdeci">void addOutputSection(OutputSection *section)</div><div class="ttdoc">Add another section to the output. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:41</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_acff4dacf326ce4a14121da5b7b2b4d64"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#acff4dacf326ce4a14121da5b7b2b4d64">elftosb::BootImageGenerator::section_vector_t</a></div><div class="ttdeci">std::vector&lt; OutputSection * &gt; section_vector_t</div><div class="ttdoc">Type for a list of model output sections. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:49</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_a137bfb230bafcdf9e1656d885bfb5769"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#a137bfb230bafcdf9e1656d885bfb5769">elftosb::BootImageGenerator::m_sections</a></div><div class="ttdeci">section_vector_t m_sections</div><div class="ttdoc">Requested output sections. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:51</div></div>
<div class="ttc" id="namespaceelftosb_html"><div class="ttname"><a href="namespaceelftosb.html">elftosb</a></div><div class="ttdef"><b>Definition:</b> BootImage.h:13</div></div>
<div class="ttc" id="classelftosb_1_1_option_context_html"><div class="ttname"><a href="classelftosb_1_1_option_context.html">elftosb::OptionContext</a></div><div class="ttdoc">Pure abstract interface class to a table of options. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/OptionContext.h:18</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_a693b475d9c9ad64950df0fad3f10ee7c"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#a693b475d9c9ad64950df0fad3f10ee7c">elftosb::BootImageGenerator::m_options</a></div><div class="ttdeci">OptionContext * m_options</div><div class="ttdoc">Global option context. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:52</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_a0f7a5debac63b14bc919c2c5f00a472b"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#a0f7a5debac63b14bc919c2c5f00a472b">elftosb::BootImageGenerator::processVersionOptions</a></div><div class="ttdeci">void processVersionOptions(BootImage *image)</div><div class="ttdoc">Handle common product and component version options. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.cpp:23</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_a20e2a5c01f10947793f17ecb961db440"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#a20e2a5c01f10947793f17ecb961db440">elftosb::BootImageGenerator::setOptionContext</a></div><div class="ttdeci">void setOptionContext(OptionContext *context)</div><div class="ttdoc">Set the global option context. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:43</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_html"><div class="ttname"><a href="classelftosb_1_1_boot_image.html">elftosb::BootImage</a></div><div class="ttdoc">Abstract base class for all boot image format classes. </div><div class="ttdef"><b>Definition:</b> BootImage.h:25</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_a906f4abc3d02d86d22ba4ddafb5127bd"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#a906f4abc3d02d86d22ba4ddafb5127bd">elftosb::BootImageGenerator::generate</a></div><div class="ttdeci">virtual BootImage * generate()=0</div><div class="ttdoc">Pure virtual method to generate the output BootImage from input sections. </div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html">elftosb::BootImageGenerator</a></div><div class="ttdoc">Abstract base class for generators of specific boot image formats. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:33</div></div>
<div class="ttc" id="classelftosb_1_1_boot_image_generator_html_af94034bc92bd88bcb3d82d9bf8a0cb36"><div class="ttname"><a href="classelftosb_1_1_boot_image_generator.html#af94034bc92bd88bcb3d82d9bf8a0cb36">elftosb::BootImageGenerator::BootImageGenerator</a></div><div class="ttdeci">BootImageGenerator()</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> BootImageGenerator.h:37</div></div>
<div class="ttc" id="classelftosb_1_1_output_section_html"><div class="ttname"><a href="classelftosb_1_1_output_section.html">elftosb::OutputSection</a></div><div class="ttdoc">Base class for data model of sections of the output file. </div><div class="ttdef"><b>Definition:</b> OutputSection.h:20</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_96c2f84c885cff71a930b6845f88cdd3.html">elftosb</a></li><li class="navelem"><a class="el" href="dir_052a101de9f4bb1b83e10d1f7ba74046.html">elftosb2</a></li><li class="navelem"><b>BootImageGenerator.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:49 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
